<div id="result_go" class="result_inner">
<?php 
	global $base_url;
	global $language;
	$baseurl = BASECH;
	if($language->language=='ta'){
		$css='govtinterest_ta';
		
	}
	else{
		$css='govtinterest';
	}
	
	
	//print "<pre>"; print_r($items); print "</pre>";
	
	foreach ($items as $res){

		$title = $res->title;
		$abstract = $res->field_go_abstract_value;
		$go_date = $res->field_go_date_value; 
		$filepath = $res->uri;
		//echo $Year = $go_date->format('d-m-Y');
		$go_date_check = date('d-M-Y',strtotime($go_date));
		$goYear = date("Y", strtotime($go_date));
		
		if(empty($filepath)){		
							$filepath = $res->uri;
							//$department= $contentlist -> dept_name;	
							$icon = '';
					}else{
						  	$icon = get_pdf_icon($filepath)	; 
						 	$filepath = $baseurl.$contentlist->filepath;	
						  	//$department= $contentlist -> dept_name;	
						  
					}
		
		if( $goYear != $go_year )		{ 
					$go_year = $goYear;
					$divOutput1 = "<div class='res_dept go_depart' ><strong>Year : " .  $goYear  . "</strong></div>";
				}
				else		{
					$divOutput1 = '';
				}
			?>
		<div class="go_box">
		
			<div class="res_dept go_depart"><span><strong>
				
			<?php 
				if($dup_department != $department ) {
					$dup_year = '';
					echo $department; 
					$dup_department = $department;
					
				}
				?></strong></span> </div>
				<div class="go_title"><strong>
				 <?php if($dup_year != $goYear){ 
							echo "Year :" . date($goYear); 
							$dup_year = $goYear;
					}?>
				 </strong></div>
	
	
	<div class="go_abstract"><a href='javascript:void(0);' onclick='return tnportal_ext_window("<?php echo $filepath;?>");'>
				 <b><?php print ucfirst($title). " Dt: ". $go_date. $icon;?></b></a>
				 <br /> <?php print $abstract ?></div>
				  
				
				  
			</div>
		
		<?php }	?>
		
		 
</div>

	




	
